import request from '@/utils/request'

// 查询服务项目列表
export function liveRoomLs(params) {
    return request({
        url: '/client/live/room/list',
        method: 'get',
        params
    })
}
// 新增客户直播间信息
export function addLiveRoom(data) {
    return request({
        url: '/client/live/room/add',
        method: 'post',
        data
    })
}
// 查看客户直播间信息
export function liveRoomDetail(id) {
    return request({
        url: `/client/live/room/detail/${id}`,
        method: 'get'
    })
}
// 编辑客户直播间信息
export function editLiveRoom(data) {
    return request({
        url: '/client/live/room/edit',
        method: 'put',
        data
    })
}
// 删除客户直播间信息
export function deleteLiveRoom(id) {
    return request({
        url: `/client/live/room/${id}`,
        method: 'DELETE',
    })
}
// 客户直播间直播场次列表
export function roomSessionLs(params) {
    return request({
        url: '/client/live/room/session/list',
        method: 'get',
        params
    })
}
// 新增客户直播间直播场次
export function addRoomSession(data) {
    return request({
        url: '/client/live/room/session/add',
        method: 'post',
        data
    })
}
// 查看客户直播间直播场次
export function roomSessionDetail(id) {
    return request({
        url: `/client/live/room/session/detail/${id}`,
        method: 'get'
    })
}
// 编辑客户直播间直播场次
export function editRoomSession(data) {
    return request({
        url: '/client/live/room/session/edit',
        method: 'put',
        data
    })
}